<div class="inside">
  <aside class="navigationPanel">
     
     <div class="tree pagesLinks">
        <ul>
           <ul>
				<li> <a href="" class="active">Chi tiết chiến dịch</a> </li>
				<li> <a href="<?php echo $baseurl.'campaign-agency/dia-diem.html'?>">Địa điểm</a> </li>
				<li> <a href="<?php echo $baseurl.'campaign-agency/cho-duyet.html'?>">Chiến dịch chờ duyệt</a> </li>
				<li> <a href="<?php echo $baseurl.'campaign-agency/gui-duyet.html'?>">Chiến dịch đã gửi duyệt</a> </li>
				<li> <a href="<?php echo $baseurl.'campaign-agency/dang-chay.html'?>">Chiến dịch đang chạy</a> </li>
				<li> <a href="<?php echo $baseurl.'campaign-agency/khac.html'?>">Chiến dịch đang khóa</a> </li>
           </ul>
        </ul>
     </div>
  </aside>
  <div class="contentPanel">
     <div class="pages" id="profile">
        <div class="profile-edit-form">
              <div class="contentBox switcher" style="height: 100%;">
                 <h3>Chi tiết chiến dịch</h3>
                    <div class="insideContentBox">
                        <?php echo form_open();?>
                              <div class="campaignDetail">
                                   <label>Danh sách địa điểm:</label> 
                                   <table class="tableEsc">
                                        <tbody>
                                           <?php foreach($data->location AS $key => $value):?>
                                               <tr>
                                                  <td><?php echo $value->shopName.'&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;Địa chỉ: '.$value->address;?></td>
                                                  <?php if($data->active == 2):?>
                                                  <td style="text-align: center"><a href="<?php echo site_url('statistic-user')?>?p_id=<?php echo base64_encode($this->encrypt->encode($value->p_id, 'statistic')).'&c_id='.base64_encode($this->encrypt->encode($data->id, 'statistic'))?>">Thống kê</a></td>
                                                  <?php else:?>
                                                  <td style="text-align: center">Chưa có thống kê</td>
                                                  <?php endif;?>
                                               </tr>
                                           <?php endforeach;?>
                                        </tbody>
                                   </table>
                                    
                                   <label style="margin-top: 8px;">Tên chiến dịch:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $data->title;?></span>
                                   </div>
                                   
                                   <label>Thời gian bắt đầu:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $data->time_start;?></span>
                                   </div>
                                   
                                   <label>Thời gian kết thúc:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $data->time_end;?></span>
                                   </div>
                                   
                                   <label>Khách hàng:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $data->customer;?></span>
                                   </div>
                                   <label>Nội dung yêu cầu:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $data->note;?></span>
                                   </div>
                                   
                                   <label>Trạng thái:</label> 
                                   <div class="lineHoller c">
                                      <span><?php echo $fview->status_campaign($data->active);?></span>
                                   </div>
    							   <label>Cập nhật trạng thái:</label> 
                                   <input type="hidden" name="id" value="<?php echo $campaign_id?>"/>  							  
								  <div class="custom-line">
										<span>
											<select name="status" class="form-select gv-select-option"><?php echo $getListActive;?></select>
										</span>
									</div>
								  
								  
                                   <div class="lineButton">
                                      <button type="submit" class="applyBtn btn btn-default btn-small btn-primary"><span>Cập nhật</span></button>
                                      <button type="button" onclick="window.location='<?php echo $baseurl.'campaign-agency/dia-diem'?>'" class="cancelBtn btn btn-default btn-small"><span>Hủy bỏ</span></button>
                                   </div>
                      		  </div>
                          </form>
                    </div>
              </div>
        </div>
     </div>
  </div>
</div>
<?php
sleep(1);
?> 
<style>
body.flash-permanent .contentPanel {
    padding: 100px 0px 18px !important;
}

.tableEsc td{
    padding: 10px 20px;
    border: 1px solid #ccc;
}
.lineHoller{
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e2e2e2;
    box-shadow: none;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    font-family: "Open Sans", serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    color: #4d4d4d;
    filter: none;
    padding: 4px 6px 4px 12px;
    margin: 0 0 15px 0;
    box-sizing: border-box;
}
.lineHoller > span {
    vertical-align: middle;
    display: block;
    height: 100%;
    line-height: 3;
}
</style>